package org.jeecg.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * description: SysMenu <br>
 * date: 2024/3/7 23:11 <br>
 * author: ASUS <br>
 * version: 1.0 <br>
 */
/**
 * 系统菜单
 */
@Data
@TableName(value = "sys_menu")
public class SysMenu implements Serializable {
    /**
     * ID
     */
    @TableId(value = "menu_id", type = IdType.INPUT)
    private Long menuId;

    /**
     * 上级菜单ID
     */
    @TableField(value = "pid")
    private Long pid;

    /**
     * 子菜单数目
     */
    @TableField(value = "sub_count")
    private Integer subCount;

    /**
     * 菜单类型
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 菜单标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 组件名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 组件
     */
    @TableField(value = "component")
    private String component;

    /**
     * 排序
     */
    @TableField(value = "menu_sort")
    private Integer menuSort;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 链接地址
     */
    @TableField(value = "`path`")
    private String path;

    /**
     * 是否外链
     */
    @TableField(value = "i_frame")
    private Boolean iFrame;

    /**
     * 缓存
     */
    @TableField(value = "`cache`")
    private Boolean cache;

    /**
     * 隐藏
     */
    @TableField(value = "hidden")
    private Boolean hidden;

    /**
     * 权限
     */
    @TableField(value = "permission")
    private String permission;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}